<?php
namespace App\Models\GoodsType;

use App\Contracts\Repositories\GoodsTypeRepository;

class GoodsTypeService
{
    private $goodsTypeRepository;

    public function __construct(GoodsTypeRepository $goodsTypeRepository)
    {
        $this->goodsTypeRepository = $goodsTypeRepository;
    }

    public function findByConditions($conditions, $withs)
    {
        return $this->goodsTypeRepository->getByConditions($conditions, $withs);
    }
}
